package vista;
import javax.swing.JButton;
import javax.swing.JTextArea;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class ListarDescripcion extends javax.swing.JFrame {
	private JTextArea txtDescrip;
	private JButton btnSalir;

	/**
	* Auto-generated main method to display this JFrame
	*/
	
	public ListarDescripcion(String datos) {
		super();
		initGUI(datos);
	}
	
	private void initGUI(String dat) {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			this.setTitle("Listar Descripciones");
			{
				txtDescrip = new JTextArea();
				getContentPane().add(txtDescrip);
				txtDescrip.setBounds(42, 23, 309, 125);
				txtDescrip.append(dat);
			}
			{
				btnSalir = new JButton();
				getContentPane().add(btnSalir);
				btnSalir.setText("Salir");
				btnSalir.setBounds(138, 200, 109, 21);
			}
			pack();
			setSize(400, 300);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

}
